* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
}
.content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #1a1f25;
  color: #e0e0e0;
}

.content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.content p {
  font-size: 1.2rem;
}

.scroll-container {
  width: 100vw;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.item {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: height 1s ease-in-out;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease-in-out;
}

.item.cur {
  z-index: 1;
}

.item.prev {
  z-index: 2;
  top: 0;
  height: 0;
}
.item.prev img {
  transform: translateY(-30%);
}

.item.next {
  z-index: 2;
  top: auto;
  bottom: 0;
  height: 0;
}
.item.next img {
  transform: translateY(30%);
}

.scroll-container.scroll-up .prev {
  height: 100%;
}
.scroll-container.scroll-up .prev img {
  transform: translateY(0);
}

.scroll-container.scroll-down .next {
  height: 100%;
}
.scroll-container.scroll-down .next img {
  transform: translateY(0);
}
